home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 3413 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  840 b 

  1. Path: keats.ugrad.cs.ubc.ca!not-for-mail
  2. From: c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku)
  3. Newsgroups: comp.lang.c,comp.unix.shell
  4. Subject: Re: command line argument help
  5. Followup-To: comp.unix.shell
  6. Date: 28 Jan 1996 11:17:43 -0800
  7. Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
  8. Message-ID: <4egi4nINNncr@keats.ugrad.cs.ubc.ca>
  9. References: <4edfth$ok@muss.CIS.McMaster.CA>
  10. NNTP-Posting-Host: keats.ugrad.cs.ubc.ca
  11.  
  12. In article <4edfth$ok@muss.CIS.McMaster.CA>,  <shadowfax> wrote:
  13.  >to all the c gods out there:
  14.  >
  15.  >i am not having too much success with command line arguments.  i am 
  16.  >trying to make a simple sumation executable for dos.  i am using borland 
  17.  >c++ v3.1.  what i want as the end result is the user just types:
  18.  >
  19.  >c:\> sum 6 3
  20.  
  21. Get a decent shell that can do arithmetic.
  22.  
  23.     echo $((6 + 3))
  24. -- 
  25.  
  26.